package de.greenrobot.daoexample.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by squall on 2016/4/20.
 */
public class HotDaily implements Serializable {

    private List<TagDetail> post_tags = new ArrayList<>();
    private String ud_id;
    private String cover;
    private String plain;
    private String uid;
    private String avatar;
    private String uname;
    private String ctime;
    private boolean have_ding;
    private int ding_num;
    private boolean from_offical;
    private String work;
    private String wid;

    public String getUd_id() {
        return ud_id;
    }

    public String getCover() {
        return cover;
    }

    public String getPlain() {
        return plain;
    }

    public List<TagDetail> getPost_tags() {
        return post_tags;
    }

    public String getUid() {
        return uid;
    }

    public String getAvatar() {
        return avatar;
    }

    public String getUname() {
        return uname;
    }

    public String getCtime() {
        return ctime;
    }

    public boolean isHave_ding() {
        return have_ding;
    }

    public int getDing_num() {
        return ding_num;
    }

    public boolean isFrom_offical() {
        return from_offical;
    }

    public void setUd_id(String ud_id) {
        this.ud_id = ud_id;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public void setPlain(String plain) {
        this.plain = plain;
    }

    public void setPost_tags(List<TagDetail> post_tags) {
        this.post_tags = post_tags;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public void setHave_ding(boolean have_ding) {
        this.have_ding = have_ding;
    }

    public void setDing_num(int ding_num) {
        this.ding_num = ding_num;
    }

    public void setFrom_offical(boolean from_offical) {
        this.from_offical = from_offical;
    }

    public String getWork() {
        return work;
    }

    public String getWid() {
        return wid;
    }

    public void setWork(String work) {
        this.work = work;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    @Override
    public boolean equals(Object o) {
        HotDaily h = (HotDaily) o;
        return h.getUd_id().equals(this.getUd_id());
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
